SetMovieMasterClock
You can use theSetMovieMasterClock
function to assign a clock component to a movie. Do not use theSetTimeBaseMasterClock
function to assign a clock component to a movie.
pascal void SetMovieMasterClock (Movie theMovie, Component clockMeister, const TimeRecord *slaveZero);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).clockMeister
- Specifies the clock component to be assigned to this movie. Your application can obtain this component identifier from the Component Manager's
FindNextComponent
routine (see the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox for more information about this routine).slaveZero
- Contains a pointer to the time, in the clock's time scale, that corresponds to a 0 time value for the movie. This parameter allows you to set an offset between the clock component and the time base of the movie. Set this parameter to
nil
if there is no offset.ERROR CODES
None